Optimal. Leaf size=353 \[ \frac {a^{5/2} (1304 A+1132 B+1015 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{512 d}+\frac {a^3 (1304 A+1132 B+1015 C) \sin (c+d x)}{512 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}+\frac {a^3 (1304 A+1132 B+1015 C) \sin (c+d x)}{768 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}+\frac {a^3 (680 A+628 B+545 C) \sin (c+d x)}{960 d \cos ^{\frac {7}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}+\frac {a^2 (120 A+156 B+115 C) \sin (c+d x) \sqrt {a \sec (c+d x)+a}}{480 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {a (12 B+5 C) \sin (c+d x) (a \sec (c+d x)+a)^{3/2}}{60 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {C \sin (c+d x) (a \sec (c+d x)+a)^{5/2}}{6 d \cos ^{\frac {7}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.10, antiderivative size = 353, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.156, Rules used = {4265, 4088, 4018, 4016, 3803, 3801, 215} \[ \frac {a^3 (1304 A+1132 B+1015 C) \sin (c+d x)}{512 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}+\frac {a^3 (1304 A+1132 B+1015 C) \sin (c+d x)}{768 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}+\frac {a^3 (680 A+628 B+545 C) \sin (c+d x)}{960 d \cos ^{\frac {7}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}+\frac {a^2 (120 A+156 B+115 C) \sin (c+d x) \sqrt {a \sec (c+d x)+a}}{480 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {a^{5/2} (1304 A+1132 B+1015 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{512 d}+\frac {a (12 B+5 C) \sin (c+d x) (a \sec (c+d x)+a)^{3/2}}{60 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {C \sin (c+d x) (a \sec (c+d x)+a)^{5/2}}{6 d \cos ^{\frac {7}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 215
Rule 3801
Rule 3803
Rule 4016
Rule 4018
Rule 4088
Rule 4265
Rubi steps
\begin {align*} \int \frac {(a+a \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx\\ &=\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{6 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \left (\frac {1}{2} a (12 A+5 C)+\frac {1}{2} a (12 B+5 C) \sec (c+d x)\right ) \, dx}{6 a}\\ &=\frac {a (12 B+5 C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{60 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{6 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \left (\frac {15}{4} a^2 (8 A+4 B+5 C)+\frac {1}{4} a^2 (120 A+156 B+115 C) \sec (c+d x)\right ) \, dx}{30 a}\\ &=\frac {a^2 (120 A+156 B+115 C) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{480 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {a (12 B+5 C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{60 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{6 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \left (\frac {5}{8} a^3 (312 A+252 B+235 C)+\frac {3}{8} a^3 (680 A+628 B+545 C) \sec (c+d x)\right ) \, dx}{120 a}\\ &=\frac {a^3 (680 A+628 B+545 C) \sin (c+d x)}{960 d \cos ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (120 A+156 B+115 C) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{480 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {a (12 B+5 C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{60 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{6 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {1}{384} \left (a^2 (1304 A+1132 B+1015 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {a^3 (680 A+628 B+545 C) \sin (c+d x)}{960 d \cos ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (1304 A+1132 B+1015 C) \sin (c+d x)}{768 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (120 A+156 B+115 C) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{480 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {a (12 B+5 C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{60 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{6 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {1}{512} \left (a^2 (1304 A+1132 B+1015 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {a^3 (680 A+628 B+545 C) \sin (c+d x)}{960 d \cos ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (1304 A+1132 B+1015 C) \sin (c+d x)}{768 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (1304 A+1132 B+1015 C) \sin (c+d x)}{512 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (120 A+156 B+115 C) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{480 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {a (12 B+5 C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{60 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{6 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {\left (a^2 (1304 A+1132 B+1015 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx}{1024}\\ &=\frac {a^3 (680 A+628 B+545 C) \sin (c+d x)}{960 d \cos ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (1304 A+1132 B+1015 C) \sin (c+d x)}{768 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (1304 A+1132 B+1015 C) \sin (c+d x)}{512 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (120 A+156 B+115 C) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{480 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {a (12 B+5 C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{60 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{6 d \cos ^{\frac {7}{2}}(c+d x)}-\frac {\left (a^2 (1304 A+1132 B+1015 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{512 d}\\ &=\frac {a^{5/2} (1304 A+1132 B+1015 C) \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{512 d}+\frac {a^3 (680 A+628 B+545 C) \sin (c+d x)}{960 d \cos ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (1304 A+1132 B+1015 C) \sin (c+d x)}{768 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^3 (1304 A+1132 B+1015 C) \sin (c+d x)}{512 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {a^2 (120 A+156 B+115 C) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{480 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {a (12 B+5 C) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{60 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {C (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{6 d \cos ^{\frac {7}{2}}(c+d x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 6.49, size = 947, normalized size = 2.68 \[ \text {result too large to display} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.96, size = 625, normalized size = 1.77 \[ \left [\frac {4 \, {\left (15 \, {\left (1304 \, A + 1132 \, B + 1015 \, C\right )} a^{2} \cos \left (d x + c\right )^{5} + 10 \, {\left (1304 \, A + 1132 \, B + 1015 \, C\right )} a^{2} \cos \left (d x + c\right )^{4} + 8 \, {\left (920 \, A + 1132 \, B + 1015 \, C\right )} a^{2} \cos \left (d x + c\right )^{3} + 48 \, {\left (40 \, A + 116 \, B + 145 \, C\right )} a^{2} \cos \left (d x + c\right )^{2} + 128 \, {\left (12 \, B + 35 \, C\right )} a^{2} \cos \left (d x + c\right ) + 1280 \, C a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + 15 \, {\left ({\left (1304 \, A + 1132 \, B + 1015 \, C\right )} a^{2} \cos \left (d x + c\right )^{7} + {\left (1304 \, A + 1132 \, B + 1015 \, C\right )} a^{2} \cos \left (d x + c\right )^{6}\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 4 \, \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} {\left (\cos \left (d x + c\right ) - 2\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 7 \, a \cos \left (d x + c\right )^{2} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right )}{30720 \, {\left (d \cos \left (d x + c\right )^{7} + d \cos \left (d x + c\right )^{6}\right )}}, \frac {2 \, {\left (15 \, {\left (1304 \, A + 1132 \, B + 1015 \, C\right )} a^{2} \cos \left (d x + c\right )^{5} + 10 \, {\left (1304 \, A + 1132 \, B + 1015 \, C\right )} a^{2} \cos \left (d x + c\right )^{4} + 8 \, {\left (920 \, A + 1132 \, B + 1015 \, C\right )} a^{2} \cos \left (d x + c\right )^{3} + 48 \, {\left (40 \, A + 116 \, B + 145 \, C\right )} a^{2} \cos \left (d x + c\right )^{2} + 128 \, {\left (12 \, B + 35 \, C\right )} a^{2} \cos \left (d x + c\right ) + 1280 \, C a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + 15 \, {\left ({\left (1304 \, A + 1132 \, B + 1015 \, C\right )} a^{2} \cos \left (d x + c\right )^{7} + {\left (1304 \, A + 1132 \, B + 1015 \, C\right )} a^{2} \cos \left (d x + c\right )^{6}\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right )}{15360 \, {\left (d \cos \left (d x + c\right )^{7} + d \cos \left (d x + c\right )^{6}\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}}}{\cos \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 2.03, size = 815, normalized size = 2.31 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\cos \left (c+d\,x\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________